package com.post_n.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

public class Post_n {
    private int id;
    //d单号
    private int nub;
    //投递员id
    private int p_id;
    //收件人姓名
    private String r_user;
    //收件人手机号码
    private  int r_number;
    //取件码
    private int p_number;
    //是否取件 （是1 否0）
    private int if_p;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "nub")
    public int getNub() {
        return nub;
    }

    public void setNub(int nub) {
        this.nub = nub;
    }

    @Column(name = "p_id")
    public int getP_id() {
        return p_id;
    }

    public void setP_id(int p_id) {
        this.p_id = p_id;
    }

    @Column(name = "r_user",length = 50)
    public String getR_user() {
        return r_user;
    }

    public void setR_user(String r_user) {
        this.r_user = r_user;
    }

    @Column(name = "r_number")
    public int getR_number() {
        return r_number;
    }

    public void setR_number(int r_number) {
        this.r_number = r_number;
    }

    @Column(name = "p_number")
    public int getP_number() {
        return p_number;
    }

    public void setP_number(int p_number) {
        this.p_number = p_number;
    }
    @Column(name="if_p")
    public int getIf_p() {
        return if_p;
    }

    public void setIf_p(int if_p) {
        this.if_p = if_p;
    }
}
